#!/bin/bash
make clean
./configure  --prefix=/Users/Andy/IOS/x86_64
rm ./pjlib/include/pj/config_site.h
make dep
make 
make install
make clean
cp ./pjlib/include/pj/config_site.h_bak ./pjlib/include/pj/config_site.h
ARCH='-arch armv7s' ./configure-iphone  --prefix=/Users/Andy/IOS/armv7s 
make dep 
make
make install
make clean
ARCH='-arch armv7' ./configure-iphone  --prefix=/Users/Andy/IOS/armv7
make dep
make
make install
make clean
ARCH='-arch arm64' ./configure-iphone  --prefix=/Users/Andy/IOS/arm64
make dep
make 
make install
make clean

